package com.example.werthwedemo0309.IntentData;

import com.example.werthwedemo0309.IntentData.Wwather.WeatherRealtime;
import com.example.werthwedemo0309.IntentData.Wwather.WeatherResponse;
import com.example.werthwedemo0309.IntentData.Wwather.WeatherResult;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;

public interface HttpbinService {
    @GET("query")
    Call<WeatherResponse<WeatherResult<WeatherRealtime>>>weatherList(@Query("city")String city, @Query("key")String key);

    @GET("/simpleWeather/cityList")
    Observable<WeatherListResponse<CityResponse>> requestCityList(@Query("key") String key);
}
